export const contentsMixin = {
  data() {
    return {
      dataItems: []
    }
  },
  methods: {
    getMenuId(menusCatch) {
      return new Promise((resolve, reject) => {
        const err = {}
        let menus = this.$KalixCatch.get(menusCatch)
        if (menus) {
          let menusNews = JSON.parse(menus)
          let item = menusNews.find(item => {
            return item.url === this.$route.fullPath
          })
          if (item) {
            resolve(item)
          } else {
            reject(err)
          }
        } else {
          reject(err)
        }
      })
    }
  }
}

/**
 * 面包屑
 * @type {{}}
 */
export const crumbsListMixin = {}
